﻿<workflow id="2">
  <start>200</start>
  <step id="200" type="2">
    <next>
      <condition>
      <![CDATA[
      select check_userrole(@createUserId,4);
      ]]>
      </condition>
      <true>201</true>
      <false>202</false>
    </next>
    <remark>判断是否为员工</remark>
  </step>
  <step id="201" type="1">
    <name>部门经理审批</name>
    <task>1</task>
    <next>202</next>
  </step>
  <step id="202" type="1">
    <name>HR审批</name>
    <task>3</task>
    <next>203</next>
  </step>
  <step id="203" type="1">
    <name>抄送</name>
    <task>101</task>
  </step>
</workflow>